Unity 5 Game Optimization by Chris Dickinson
Author:Chris Dickinson [Dickinson, Chris]
Language: eng
Format: epub, azw3
Publisher: Packt Publishing
Published: 2015-11-05T23:00:00+00:00
Prefer discrete collision detection
We should use the Discrete option by default for the majority of objects. Teleporting objects once and performing a single overlap check between nearby object-pairs is a fairly trivial amount of work. However, the amount of calculation it takes to interpolate the objects between their starting and ending positions, and simultaneously verify any slight bounding-volume overlaps between these points over time, is significantly greater.
Consequently, the Continuous collision detection option is an order of magnitude more expensive than the Discrete detection method, and the ContinuousDynamic collision detection setting is an order of magnitude more expensive than Continuous! Having too many objects of the continuous types will cause serious performance degradation in complex Scenes. In either case, the costs are multiplied by the number of objects that need to be compared during any given frame and whether or not the comparison collider is Static or Dynamic.
Ergo, the continuous detection settings should only be used in extreme circumstances. The Continuous setting should be used when important collisions are frequently missed with the static world, for instance, if we expect certain objects to move quickly, and we wish to be certain they never fall through the game world or teleport through walls. Finally, the ContinuousDynamic setting should only be used if the same situation applies but we wish to catch collisions between pairs of very-fast moving Dynamic Colliders. Unless we have good reason to use them, all other situations should favor the Discrete setting.
But, perhaps, the Discrete setting isn't working well-enough on a large scale. Perhaps our entire game revolves around a lot of small physics objects and discrete collision detection simply isn't catching enough collisions to maintain product quality. Well, we're in luck, because we can customize the physics timestep to give the Discrete collision option a better chance of catching such collisions by modifying how frequently the engine checks for Fixed Updates.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Implementing Enterprise Observability for Success by Manisha Agrawal and Karun Krishnannair(7020)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6384)
Supercharging Productivity with Trello by Brittany Joiner(6283)
Mastering Tableau 2023 - Fourth Edition by Marleen Meier(6037)
Inkscape by Example by István Szép(5877)
Visualize Complex Processes with Microsoft Visio by David J Parker & Šenaj Lelić(5588)
Build Stunning Real-time VFX with Unreal Engine 5 by Hrishikesh Andurlekar(4575)
Design Made Easy with Inkscape by Christopher Rogers(4421)
Customizing Microsoft Teams by Gopi Kondameda(3962)
Linux Device Driver Development Cookbook by Rodolfo Giometti(3911)
Extending Microsoft Power Apps with Power Apps Component Framework by Danish Naglekar(3560)
Salesforce Platform Enterprise Architecture - Fourth Edition by Andrew Fawcett(3418)
Pandas Cookbook by Theodore Petrou(3417)
Business Intelligence Career Master Plan by Eduardo Chavez & Danny Moncada(3351)
The Tableau Workshop by Sumit Gupta Sylvester Pinto Shweta Sankhe-Savale JC Gillet and Kenneth Michael Cherven(3224)
TCP IP by Todd Lammle(2964)
Drawing Shortcuts: Developing Quick Drawing Skills Using Today's Technology by Leggitt Jim(2892)
Applied Predictive Modeling by Max Kuhn & Kjell Johnson(2836)
Work Smarter with Microsoft OneNote by Connie Clark(2836)
